// @import '~@inbiz/components/style/index.less';
.inbiz-EformMemberSelect {
  &-selectedArea {
    position: relative;
    min-height: 52px;
    max-height: 200px;
    margin-top: 10px;
    padding: 8px;
    overflow: hidden;
    overflow-y: auto;
    border: 1px solid var(--inbiz-color-border-base);
    border-radius: 4px;

    &.selectedAreaReadOnly {
      background: #f5f5f5;
    }

    &::-webkit-scrollbar {
      width: 6px;
      height: 6px;
      background-color: transparent;
    }

    /* 定义滚动条轨道
      内阴影+圆角 */
    &::-webkit-scrollbar-track {
      background-color: transparent;
      border-radius: 4px;

      --webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
    }

    /* 定义滑块
      内阴影+圆角 */
    &::-webkit-scrollbar-thumb {
      background-color: #ddd;
      border-radius: 4px;

      --webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
    }
  }

  .ant-select {
    .ant-select-selector {
      padding: 0;
    }

    .ant-select-selection-overflow {
      height: 100%;

      .ant-select-selection-overflow-item {
        display: flex;
        align-items: center;
        width: 100%;
        height: 100%;

        >span {
          display: block;
          flex: 1;
          height: 100%;
        }

        &+.ant-select-selection-overflow-item-suffix {
          display: none;
        }
      }
    }
  }

  &-inlineTag.ant-tag {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #fff;
    border: none;
    cursor: default;
    user-select: none;

    &.inlineTagReadOnly {
      background: #f5f5f5;
    }

    >svg {
      margin: 0 10px;
      font-size: 20px;
    }

    &>span:nth-child(2) {
      flex: 1;
      overflow: hidden;
      color: #000;
      font-size: 12px;
      text-overflow: ellipsis;
    }

    &>span:nth-child(3) {
      display: flex;
      align-items: center;
      justify-content: center;
      margin-right: 36px;
      width: 16px;
      height: 16px;
      visibility: hidden;

      span.anticon {
        color: #ccc;
        font-size: 14px;
        text-align: center;
        border-radius: 50%;

        &:hover {
          color: #f25b43;
          transform: scale(1.1);
        }
      }
    }

    &:hover {
      >span {
        &.ant-tag-close-icon {
          visibility: visible;
        }
      }
    }
  }

  &-multiple-member {
    display: flex;
    justify-content: space-between;

    &-icon {
      color: rgba(0, 0, 0, 0.25);
      cursor: pointer;
    }
  }
}